package com.workerhelping.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_notice")
public class Notice implements Serializable {
    @TableId
    private Integer id;
    // 公告标题
    private String title;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    //公告内容
    private String content;
    // 文件链接
    private String filePath;
}
